﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace MsForgeReboot.Web.Controllers
{
    using MsForgeReboot.Framework.Interfaces;

    public class UserGroupController : Controller
    {
        private readonly IUserGroupService userGroupService;

        public UserGroupController(IUserGroupService userGroupService) {
            this.userGroupService = userGroupService;
        }

        public ActionResult Index(int page = 1, int pageSize = 10)
        {
            return this.View(this.userGroupService.GetList(page, pageSize));
        }

    }
}
